#include "BaseResource.h"
#include "Exception.h"
#include "Logger.h"

NS_B2D_BEGIN

B2D_OBJECT_IMPL(IResource, Object)
B2D_OBJECT_IMPL(BaseResource, IResource)


void BaseResource::setName(const StringId& id)
{
	if(!mName.getString().empty())
	{
		B2D_LOG_DEBUG("Changing resource name from \"%s\" to \"%s\"",
			mName.getString().c_str(), id.getString().c_str());
	}
	mName = id;
}

NS_B2D_END